<!DOCTYPE html>
<html lang="cn">
<head>
	<!--
		Charisma v1.0.0

		Copyright 2012 Muhammad Usman
		Licensed under the Apache License v2.0
		http://www.apache.org/licenses/LICENSE-2.0

		http://usman.it
		http://twitter.com/halalit_usman
	-->
	<meta charset="utf-8">
	<title><{$title}></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<!-- The styles -->
	<!-- <link id="bs-css" href="__PUBLIC__/css/bootstrap-cerulean./css" rel="stylesheet"> -->
	<link rel="stylesheet" href="__PUBLIC__/admin/css/indexindex.css">
	<link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
	<link href="__PUBLIC__/admin/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="__PUBLIC__/admin/css/charisma-app.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/datetimepicker/jquery.datetimepicker.css"/>

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- The fav icon -->
	<!-- <link rel="shortcut icon" href="__PUBLIC__/admin/img/favicon.ico"> -->
	
	<script src="__PUBLIC__/jquery-1.8.3.min.js"></script>
	<script src="__PUBLIC__/js/html5shiv.min.js"></script>
</head>

<body>
	<!-- <{$Think.const.NOW_TIME}> -->
		<!-- topbar starts -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="index.html"> <img alt="" src="__PUBLIC__/admin/img/logo.png" style="width:80px;height:31px;background-color:#EB6120;"/> <span>Gewara</span></a>
				
				<!-- theme selector starts -->
				<div class="btn-group pull-right theme-container" >
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="<{:U('Public/logout')}>">
						<i class="icon-tint"></i><span class="hidden-phone">退出</span>
						
					</a>
					
				</div>
				<!-- theme selector ends -->
				
				<!-- user dropdown starts -->
				<div class="btn-group pull-right" >
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
						<i class="icon-user"></i>
						<span class="hidden-phone">
						<empty name="admin.name"><{$admin.username}>
						<else/><{$admin.name}>
						</empty>
						</span>
						
					</a>
					
				</div>
				<!-- user dropdown ends -->
				
				<div class="top-nav nav-collapse">
					<!-- <ul class="nav">
						<li><a href="#">Visit Site</a></li> -->
						<!-- <li>
							<form class="navbar-search pull-left">
								<input placeholder="Search" class="search-query span2" name="query" type="text">
							</form>
						</li> -->
					<!-- </ul> -->
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>
	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">
				
			<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<div class="well nav-collapse sidebar-nav">
					<ul class="nav nav-tabs nav-stacked main-menu">
						<li class="nav-header hidden-tablet">用户管理</li>
						<li><a class="ajax-link" href="<{:U('Index/index')}>"><i class="icon-home"></i><span class="hidden-tablet"> 用户列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Index/add')}>"><i class="icon-eye-open"></i><span class="hidden-tablet"> 新增用户</span></a></li>
						<li class="nav-header hidden-tablet">影院管理</li>
						<li><a class="ajax-link" href="<{:U('Cinema/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 影院列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Cinema/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增影院</span></a></li>
						<li class="nav-header hidden-tablet">影厅管理</li>
						<li><a class="ajax-link" href="<{:U('Hall/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 影厅列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Hall/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增影厅</span></a></li>
						

						<li class="nav-header hidden-tablet">场次管理</li>
						<li><a class="ajax-link" href="<{:U('Session/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 场次列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Session/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增场次</span></a></li>
						<li class="nav-header hidden-tablet">收藏管理</li>
						<li><a class="ajax-link" href="<{:U('Collection/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 收藏列表</span></a></li>

						<li class="nav-header hidden-tablet">分类管理</li>
						<li><a class="ajax-link" href="<{:U('Category/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 分类列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Category/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增一级分类</span></a></li>
						<li class="nav-header hidden-tablet">电影管理</li>
						<li><a class="ajax-link" href="<{:U('Movie/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 电影列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Movie/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增电影</span></a></li>
						
						<li class="nav-header hidden-tablet">广告管理</li>
						<li><a class="ajax-link" href="<{:U('Advert/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 广告列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Advert/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">广告添加</span></a></li>

						<li class="nav-header hidden-tablet">演员管理</li>
						<li><a class="ajax-link" href="<{:U('Actor/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 演员列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Actor/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增演员</span></a></li>
						<li class="nav-header hidden-tablet">订单管理</li>
						<li><a class="ajax-link" href="<{:U('Order/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 订单列表</span></a></li>

						<li class="nav-header hidden-tablet">管理员管理</li>
						<li><a class="ajax-link" href="<{:U('User/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 管理员列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('User/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增管理员</span></a></li>

						<li class="nav-header hidden-tablet">角色管理</li>
						<li><a class="ajax-link" href="<{:U('role/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 角色列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('role/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增角色</span></a></li>

						<li class="nav-header hidden-tablet">节点管理</li>
						<li><a class="ajax-link" href="<{:U('Node/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 节点列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Node/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增节点</span></a></li>

						<li class="nav-header hidden-tablet">评论管理</li>
						<li><a class="ajax-link" href="<{:U('Comment/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 评论列表</span></a></li>
					

						<li class="nav-header hidden-tablet">积分管理</li>
						<li><a class="ajax-link" href="<{:U('score/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 积分列表</span></a></li>
						
						
						
						<li class="nav-header hidden-tablet">轮播图管理</li>
						<li><a class="ajax-link" href="<{:U('banner/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 轮播图列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('banner/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增轮播图</span></a></li>


						<li class="nav-header hidden-tablet">友情链接管理</li>
						<li><a class="ajax-link" href="<{:U('Friend/index')}>"><i class="icon-align-justify"></i><span class="hidden-tablet"> 友情链接列表</span></a></li>
						<li><a class="ajax-link" href="<{:U('Friend/add')}>"><i class="icon-calendar"></i><span class="hidden-tablet">新增友情链接</span></a></li>


					
						
					</ul>
					
				</div><!--/.well -->
			</div><!--/span-->
			<!-- left menu ends -->
			
			<!-- <noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript> -->
			
			<div id="content" class="span10">
			<!-- content starts -->
			

			<div>
				<!-- <ul class="breadcrumb">
					<li>
						<a href="#">Home</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">Tables</a>
					</li>
				</ul> -->
			</div>
		<block name="breadcrumb-01"></block>
		<block name="breadcrumb-02"></block>
		<block name="breadcrumb-03"></block>

			<block name="main">	

			<div class="container">
		    	<div id="search">
		      		<form action="<{:U('index')}>" method='get'>
		      			 Tel : <input type="text" name="phone" class='search' placeholder="请输入完整电话号码">
		      			 <input class="button" type="submit" >
		     		 </form>
		    	</div>
			</div>
			<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<!-- <h2><i class="icon-user"></i> Members</h2> -->
						<div class="box-icon">
							<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
							<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
						</div>
					</div>
					<div class="box-content">
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th>用户头像</th>
								  <th>用户ID</th>
								  <th>手机号</th>
								  <th>昵称</th>
								  <th>性别</th>
								  <th>邮箱</th>
								  <th>注册时间</th>
								  <th>状态</th>
								  <th>操作</th>
							  </tr>
						  </thead>
						  	
						  <tbody>
							<!-- start volist -->
							<empty name="list">
						  		<tr>
						  			<tr><td colspan=9 style="font-size:20px;text-align:center;height:40px;">暂无数据</td></tr>
						  		</tr>
						  	</empty> 
						  	<volist name="list" id="vo">
								<tr>
									<!-- <td class="center"><{$vo.icon}></td> -->
									<empty name="vo['icon']">
										<td><img src="__PUBLIC__/images/touxiang.jpg"style="width:40px;height:40px;"></td>
									<else/>
										<td><img src="__ROOT__/Uploads/<{$vo.icon|substr=0,8}>/<{$vo.icon|substr=8}>"style="width:40px;height:40px;"></td>
									</empty>
									<td class="center"><{$vo.id}></td>
									<td class="center"><{$vo.phone}></td>
									<td class="center"><{$vo.name}></td>
									<td class="center" id="user_status">
										<if condition="$vo.sex eq '0'">女
										<elseif condition="$vo.sex eq '1'" />男
										<else />保密
										</if>
									</td>
									<td class="center"><{$vo.email}></td>
									<td class="center"><{$vo.regtime|date='Y/m/d',###}></td>
									<td class="center">
										<a class="btn btn-change"><span class="label label-success icon-white status" bz="<{$vo.id}>">
											<if condition="$vo.status eq '0'">禁用
											<else/>激活
											</if>
										</span></a>
									</td>
									<td class="center">
										
										<a class="btn btn-info" href="<{:U('edit',array('id'=>$vo['id']))}>">
											<i class="icon-edit icon-white"></i>  
											编辑                                            
										</a>
										<a class="btn btn-danger" href="<{:U('del',array('id'=>$vo['id']))}>">
											<i class="icon-trash icon-white"></i> 
											删除
										</a>
									</td>
								</tr>
							
							</volist> <!-- end volist -->

						  </tbody>
					  </table>            
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
			<{$page}>
			<script>
				$(function(){
					// console.log($('.status'));
					$('.status').click(function(){
						// alert('pig');
						// var sex = $(this).html();
						// sex = sex.replace(/\s/g,'');
						var	id = $(this).attr('bz');
						// console.log(id);
						// console.log(sex);
						var info ='id='+ id  ;
						// console.log(info);
						var	_this = $(this);
						$.ajax({
							type:'get',
							url:"<{:U('change')}>",
							data:info,
							success:function(data){
								console.log(data);
								_this.html(data);
							},
							// dataType:'json',
						})
					})
				})

			</script>
			</block>

			
			
			
					<!-- content ends -->
			</div><!--/#content.span10-->
				</div><!--/fluid-row-->
				
		<hr>

		

		<footer>
			
		</footer>
		
	</div><!--/.fluid-container-->

	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery -->

	
	<!-- application script for Charisma demo -->
	<!--<script src="__PUBLIC__/admin/js/charisma.js"></script>-->
	
		
</body>
</html>
